let constant = {}
/** Logger 配置**/
constant.config = {
    /** 运行日志配置 **/
    logger: {
        path: `${process.env.PWD}/logs`,
        expire: 86400 * 7,
        name: '[siwi-micro]'
    },
    /** 子进程路由 **/
    routes: [
        { command: "node", args: ['role.js', '--watch'], options: { cwd: `${process.env.PWD}/routes`, detached: false } },
        { command: "node", args: ['user.js', '--watch'], options: { cwd: `${process.env.PWD}/routes`, detached: false } }
    ],
    /** redis **/
    redis: {
        port: 6379,          // Redis port
        host: '127.0.0.1',   // Redis host
        family: 4,           // 4 (IPv4) or 6 (IPv6)
        password: 'auth',
        db: 0
    },
    /** mongodb **/
    mongodb: {

    },
    /** mysql **/
    mysql: {

    },
    /** 微信配置 **/
    wechat: [

    ]
}
module.exports = constant